home *** CD-ROM | disk | FTP | other *** search
/ Complete Linux / Complete Linux.iso / docs / apps / database / ingres04.lzh / doc / quel / ordered.doc < prev    next >
Encoding:
Text File  |  1992-11-19  |  2.3 KB  |  58 lines

  1.  
  2.  
  3.  
  4.  
  5.      ORDERED(QUEL)               12/31/84                ORDERED(QUEL)
  6.  
  7.  
  8.  
  9.  
  10.      NAME
  11.           ordered - storage structure type
  12.  
  13.  
  14.      DESCRIPTION
  15.           _O_r_d_e_r_e_d relations are a special type of storage structure in
  16.           INGRES.   They  are  created by using the modify relation to
  17.           orderedn command where n indicates the  ordering  dimension.
  18.           Ordering  does  not destroy existing storage structures on a
  19.           relation.  The resulting relation is the old relation with n
  20.           4-byte  integer  LID fields "attached" to the the end of the
  21.           relation.  These fields are different from conventional  at-
  22.           tribute  fields because they can be dynamically adjusted  by
  23.           the system during updates to maintain a consistent  ordering
  24.           of tuples in a relation.  Thus a LID attribute  value may be
  25.           updated even though a query does not explicitly affect a lid
  26.           attribute in that tuple.
  27.  
  28.           Updates are fully supported in ordered  relations  with  the
  29.           following side effects.
  30.  
  31.           Appends - If the user specifies a lid value,  the  tuple  is
  32.           inserted  in  front  of the tuple with that lid value.  Thus
  33.           all lid values following that tuple are incremented by  one.
  34.           If  a  lid is not specified and it corresponds to the lowest
  35.           lid level (ie lid3 in a 3-dimensional ordered relation), the
  36.           tuple will be inserted at the end of the lid subtree that it
  37.           corresponds to.  Otherwise the lid value is  assumed  to  be
  38.           "0"  which  indicates  to  the system that a new lid subtree
  39.           will be created at level n where the lid  value  was  speci-
  40.           fied.
  41.  
  42.           Deletes - The user  can  delete  tuples  by  specifying  lid
  43.           values.   The  side  effect  is that lid values will be col-
  44.           lapsed due to the removed tuples.
  45.  
  46.           Replaces - Like appends, new  tuples  will  be  inserted  in
  47.           front  of  the tuple with the old lid value that the user is
  48.           trying to replace.  If no  new  lid  values  are  specified,
  49.           they're  assumed  to  be  the old ones.  To create a new lid
  50.           subtree using replace, a lid value is "0" is  to  be  speci-
  51.           fied.
  52.  
  53.  
  54.      SEE ALSO
  55.           modify(quel)
  56.  
  57.  
  58.